from django.urls import path
from rest_framework.routers import DefaultRouter

from system.views.role import RoleModelViewSet
from system.views.permissions import PermissionsModelVIewSet, PermissionAPIView

app_name = 'system'

routes = DefaultRouter()
routes.register('role', RoleModelViewSet, basename='role')
routes.register('permissions', PermissionsModelVIewSet, basename='permissions')

urlpatterns = [
    path('pers/', PermissionAPIView.as_view()),
]

urlpatterns += routes.urls